enable_root:
	mov dword [root],'#$' ; --> Change to root
	ret
disable_root:
	mov dword [root],'##'
	ret
	kernelname db 'NTOSKRNL.EXE',0
root db '##',0 ; Root Identifier
.data:
	loadpoint equ 32770 ; Load point of the program
	totalmem equ 65535 ; Total Memory
	sizekern dw 0
	MODE db 'CMDL',0
	pcgui_file db 'PCGUI.COM',0
set_int20_mode:
	cmp ax,0 ; AX = 0? Normal Mode
	je .normal
	; Or else it's pcgui telling us
	mov dword [MODE],'PGUI'
	ret
.normal:
	mov dword [MODE],'CMDL'
	ret
os_pcgui_switch:
	mov ax,si
	mov bx,0
	mov cx,8000h
	call os_load_file
	mov si,0
	mov di,0
	mov dh,0
	mov dl,0
	call 8002h ; First call the program loaded by PCGUI
	; Now let's load pcgui again
	jmp load_pcgui
load_pcgui:
	mov ax,pcgui_file
	mov bx,0
	mov cx,0x8000
	call os_load_file
	jc os_fatal_error ; Or send a Fatal Error message
	call 0x8002 ; Jump to PCGUI
	; Nothing in here
switch_basic:
	push di
	call os_clear_screen
	mov ax,basic2f
	mov bx,0
	mov cx,0x8000
	call os_load_file
	pop di
	mov word [prog2], di
	jc os_fatal_error
	mov word si,[prog2]
	call 0x8002
	call load_pcgui
	prog2 dw 0
	basic2f db 'BASIC2.COM',0